//
//  StatusNormalCell.m
//  kuangjia
//
//  Created by 张帅 on 15/10/4.
//  Copyright © 2015年 ZhangShuai. All rights reserved.
//

#import "StatusNormalCell.h"

@implementation StatusNormalCell

-(void)setStatusViewModel:(StatusViewModel *)statusViewModel{
    [super setStatusViewModel:statusViewModel];
    CGFloat offset = self.statusViewModel.thumbnailURLs.count ==0 ? 0:HMStatusPictureItemMargin;
    
    [self.pictureView mas_updateConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentLabel.mas_bottom).offset(offset);
    }];
}
-(void)setupUI{

    [super setupUI];
      
    [self.pictureView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentLabel.mas_left);
        self.pictureViewTopCons=make.top.equalTo(self.contentLabel.mas_bottom).offset(HMStatusCellMargin);
        self.pictureViewHeightCons=make.height.equalTo(@(HMStatusPictureMaxWidth));
        self.pictureViewWidthCons=make.width.equalTo(@(HMStatusPictureMaxWidth));
        
    }];

    
    
}

@end
